<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
</head>
<body>
	<div class="content-wrapper" th:fragment="fieldsetMetadata">
		<h3>
			添加元数据
			<!-- 添加<span class="form-control-static"
				th:text="${fieldsets.fieldsetName}"></span>的元数据字段 -->
		</h3>
		<input type="hidden" id="fieldsetId" th:value="${fieldsets.fieldsetId}" /> 
		<input type="hidden" id="profileId" th:value="${profiles.profileId}" />
		<form class="form-horizontal" id="fieldsetMetadataForm">
		<div class="panel panel-default">
			<div class="panel-heading"></div>
			<!-- START table-responsive-->
			<div class="table-responsive">
			
				<table id="table-ext-1" class="table table-bordered table-hover">
					<thead >
						<tr>
							<th data-check-all="" style="width:50px;">
								<div data-toggle="tooltip" data-title="Check All"
									class="checkbox c-checkbox">
									<label> <input type="checkbox" id="checkAll"/> <span
										class="fa fa-check"></span>
									</label>
								</div>
							</th>
							<th class="text-center" style="width:50px;">是否必填</th>
							<th class="text-center" style="width:100px;">显示名</th>
							<th class="text-center" style="width:100px;">类型</th>
							<th class="text-center" style="width:100px;">顺序</th>
						</tr>
					</thead>
					<tbody id="metadataListTable" class="text-center">
						<!-- <tr>
							<td>
								<div class="checkbox c-checkbox">
									<label> <input type="checkbox" /> <span class="fa fa-check"></span>
									</label>
								</div>
							</td>
							<td>
								<div class="checkbox c-checkbox">
									<label> <input type="checkbox" /> <span
										class="fa fa-check"></span>
									</label>
								</div>
							</td>
							<td>mail@example.com</td>
							<td> mail@example.com </td>
							<td> <input class="form-control" type="text"/> </td>
						</tr> -->
					</tbody>
				</table>
				<input type="hidden" id="metadataIdList" name="metadataIdList" value="" />
				<input type="hidden" id="metaSortList" name="metaSortList" value="" />
				<input type="hidden" id="isRequireList" name="isRequireList" value="" />
			</div>
			<!-- END table-responsive-->
			<div class="panel-footer">
				<div class="row">
					<div class="pull-right">
					    <input type="hidden" id="opr" name="opr" th:value="${opr}"/>
						<button type="button" id="returnBtn" class="btn btn-default" style="margin-right: 20px;">返回</button>
						<button type="button" id="submitFieldsetMetadata" class="btn btn-primary">保存</button>
					</div>
				</div>
			</div>
		</div>
		</form>
	</div>

	<div th:fragment="fieldsetMetadata_dialog"></div>

	<div th:fragment="fieldsetMetadata_js">

		<script th:src="@{/business/manager/inputProfile/fieldsetMetadata.js}"></script>

	</div>

</body>
</html>